package com.hy.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hy.common.Result;
import com.hy.entity.Comment;
import com.hy.dto.comment.CommentPageDTO;

public interface CommentService extends IService<Comment> {

    Result<CommentPageDTO> getWeeklyComments(Long weeklyId,Long teacherId,Integer pageNum, Integer pageSize);

    Result<Boolean> addComment(Comment comment);

    Result<CommentPageDTO> getCommentReplies(Long commentId, Integer pageNum, Integer pageSize);

    Result<CommentPageDTO> getStudyGardenComments(Long studyGardenId, Integer page, Integer size);


    Result<Boolean> likeComment(Long commentId);
    Result<Boolean> DeleteComment(Long commentId);
}
